package lagern;

/**
 * Interface definition: Lager.
 * 
 * @author OpenORB Compiler
 */
public class LagerPOATie extends LagerPOA
{

    //
    // Private reference to implementation object
    //
    private LagerOperations _tie;

    //
    // Private reference to POA
    //
    private org.omg.PortableServer.POA _poa;

    /**
     * Constructor
     */
    public LagerPOATie(LagerOperations tieObject)
    {
        _tie = tieObject;
    }

    /**
     * Constructor
     */
    public LagerPOATie(LagerOperations tieObject, org.omg.PortableServer.POA poa)
    {
        _tie = tieObject;
        _poa = poa;
    }

    /**
     * Get the delegate
     */
    public LagerOperations _delegate()
    {
        return _tie;
    }

    /**
     * Set the delegate
     */
    public void _delegate(LagerOperations delegate_)
    {
        _tie = delegate_;
    }

    /**
     * _default_POA method
     */
    public org.omg.PortableServer.POA _default_POA()
    {
        if (_poa != null)
            return _poa;
        else
            return super._default_POA();
    }

    /**
     * Operation neu
     */
    public lagern.Fach neu(String user, String name)
        throws lagern.LagerPackage.exAlreadyExists
    {
        return _tie.neu( user,  name);
    }

    /**
     * Operation hole
     */
    public lagern.Fach hole(String user, String name)
        throws lagern.LagerPackage.exNotFound
    {
        return _tie.hole( user,  name);
    }

    /**
     * Operation holeLagerListe
     */
    public lagern.Fach[] holeLagerListe()
    {
        return _tie.holeLagerListe();
    }

    /**
     * Operation aktiviereMonitor
     */
    public void aktiviereMonitor(lagern.Monitor theMonitor)
    {
        _tie.aktiviereMonitor( theMonitor);
    }

    /**
     * Operation entferneMonitor
     */
    public void entferneMonitor(lagern.Monitor theMonitor)
    {
        _tie.entferneMonitor( theMonitor);
    }

    /**
     * Operation quit
     */
    public void quit()
    {
        _tie.quit();
    }

}
